package com.itheima.itheima.test;

import java.util.concurrent.atomic.AtomicInteger;

class MyThread03 extends Thread{
    public  static AtomicInteger a = new AtomicInteger(0);

    @Override
    public void run() {
        for (int i=0;i<30000;i++){
            a.getAndIncrement();
        }
        System.out.println("线程执行完毕");
    }
}